package com.urbane.oss.config;

import com.urbane.oss.properties.AliyunOssProperties;
import org.springframework.context.annotation.Bean;

public class OssConfig {

    @Bean
    public OSS ossClient(AliyunOssProperties properties) {
        OSSBuilder builder = new OSSClientBuilder();
        return builder.build(properties.getEndpoint(), properties.getAccessId(), properties.getSecretKey());
    }

}
